﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "property_information", DisableSyncStructure = true)]
	public partial class PropertyInformation {

		/// <summary>
		/// 房产编号
		/// </summary>
		[JsonProperty, Column(Name = "P_Id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int PId { get; set; }

		/// <summary>
		/// 房产所属小区
		/// </summary>
		[JsonProperty, Column(Name = "P_Cell_Id", DbType = "int")]
		public int? PCellId { get; set; }

		/// <summary>
		/// 房间数
		/// </summary>
		[JsonProperty, Column(Name = "P_Count", DbType = "int")]
		public int? PCount { get; set; }

		/// <summary>
		/// 栋数
		/// </summary>
		[JsonProperty, Column(Name = "P_Ridgepole")]
		public string PRidgepole { get; set; }

		/// <summary>
		/// 入住时间
		/// </summary>
		[JsonProperty, Column(Name = "P_StayTime", DbType = "datetime")]
		public DateTime? PStayTime { get; set; }

		/// <summary>
		/// 房产单元楼层
		/// </summary>
		[JsonProperty, Column(Name = "P_UnitFloor")]
		public string PUnitFloor { get; set; }

		/// <summary>
		/// 房产所属户主
		/// </summary>
		[JsonProperty, Column(Name = "P_UserId", DbType = "int")]
		public int? PUserId { get; set; }

	}

}
